/*
 * addradiowizard.cpp
 *
 *  Created on: Jan 23, 2009
 *      Author: rex
 */

#include "addradiowizard.h"

AddRadioWizard::AddRadioWizard(QWidget *parent)
	: QWizardPage(parent)
{
	customLayout = new QVBoxLayout(this);
	customLayout->setMargin(0);

	setTitle("Add a new Station");
	radioNameLabel = new QLabel("Radio name");
	radioNameLineEdit = new QLineEdit(this);
	radioNameLabel->setBuddy(radioNameLineEdit);

	radioURLLabel = new QLabel("Radio URL");
	radioURLLineEdit = new QLineEdit(this);
	radioURLLabel->setBuddy(radioURLLineEdit);

	radioInfoLabel = new QLabel("Radio Info");
	radioInfoLineEdit = new QLineEdit(this);
	radioInfoLabel->setBuddy(radioInfoLineEdit);

	QGridLayout *elementsLayout = new QGridLayout;
	elementsLayout->addWidget(radioNameLabel, 1, 0);
	elementsLayout->addWidget(radioNameLineEdit, 1, 1);
	elementsLayout->addWidget(radioURLLabel, 2, 0);
	elementsLayout->addWidget(radioURLLineEdit, 2, 1);
	elementsLayout->addWidget(radioInfoLabel, 3, 0);
	elementsLayout->addWidget(radioURLLineEdit, 3, 1);

	customLayout->addLayout(elementsLayout);

	setLayout(customLayout);
}

AddRadioWizard::~AddRadioWizard() {
	// TODO Auto-generated destructor stub
}
